/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package memory;

import java.util.ArrayList;

/**
 *
 * @author Erdiansyah
 */

//kok mirip sama chat,kayaknya ini ga perlu
public class Chatroom {
    private String id;
    private User username;    //kl di chat ini sender
    private User tousername;  //ini receiver
    private boolean isexit;
    private ArrayList<Chat> content;

    public Chatroom(User username, User tousername) {
        this.id = "input_"+username.getUsername()+"_"+tousername.getUsername();
        this.username = username;
        this.tousername = tousername;
        this.isexit = false;
        this.content = new ArrayList<Chat>();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public ArrayList<Chat> getContent() {
        return content;
    }

    public void setContent(ArrayList<Chat> content) {
        this.content = content;
    }

    public boolean isIsexit() {
        return isexit;
    }

    public void setIsexit(boolean isexit) {
        this.isexit = isexit;
    }

    public User getTousername() {
        return tousername;
    }

    public void setTousername(User tousername) {
        this.tousername = tousername;
    }

    public User getUsername() {
        return username;
    }

    public void setUsername(User username) {
        this.username = username;
    }

}
